#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()

def printCoords(event):
    print event.x, event.y

bt1 = Button(root, text='leftmost button')
bt1.bind('<Leave>', printCoords)

bt1.grid()

root.mainloop()
